<?php
	require_once "../../sesi_login.php";
	require_once "../../konfigurasi.php";
	
	fungsi('perkara');

	$kd = $_POST['kd'];
	
	koneksi_buka();
	$dt_spdp = mysql_fetch_array(mysql_query("
	SELECT * FROM t_spdp a
	LEFT JOIN r_kesatuan b ON a.kd_kesatuan=b.kd_kesatuan
	LEFT JOIN r_jenis_pidana c ON a.kd_pidana = c.kd_pidana
	WHERE kd_perkara='$kd'
	"));
	
	$q_tersangka = mysql_query("
		SELECT * FROM t_tersangka_spdp a 
		LEFT JOIN t_tersangka b ON a.kd_tersangka=b.kd_tersangka
		LEFT JOIN r_agama c ON b.kd_agama=c.kd_agama
		WHERE kd_perkara='$kd'");
	$dt_tersangka = mysql_fetch_array($q_tersangka);
	
	$q_jaksa = mysql_query("
	SELECT * FROM t_p16_jaksa a
	LEFT JOIN t_pegawai b ON a.kd_pegawai = b.kd_pegawai
	LEFT JOIN r_pangkat c ON b.kd_pangkat = c.kd_pangkat
	WHERE kd_perkara ='$kd'");
	
	$jaksa_jumlah = mysql_num_rows($q_jaksa);
	
	if(pengaturan('berkas_huruf_tebal') && pengaturan('berkas_huruf_besar')) {
		//echo "2";
	}
?>
<style media="screen">
  #barcode { display: none; }
</style> 

<style>
	#underline { 
		border-bottom: 2px solid #000000;
	}
	
	#logo { 
		width: 200px;
		border-bottom: 2px solid #000000;
		text-align: center;
		font-size: 14pt;
		font-weight: bold;

	}
	#sublogo { 
		width: 200px;
		text-align: center;
		font-size: 14pt;
	}
	
	#header { 
		width: 500px;
		font-size: 20pt;
		font-weight: bold;
		border-bottom: 2px solid #000000;
	}
	
	#barcode {
		position: absolute;
		top: 1320px;
		left: 560px;
	}
	
	td {
		padding-bottom: 10px;
	}
</style>

<img id="barcode" src="sistem/barcode/<?php echo $kd ?>_b.gif" width="240"/>
<table width="800" border="0">
<tr valign="top">
	<td colspan="8">
		<div id="logo">
		KEJAKSAAN NEGERI<br/>SURABAYA
		</div>
		<div id="sublogo">UNTUK KEADILAN</div>
	</td>
	<td align="right"><strong>T-4</strong></td>
</tr>
<tr>
	<td colspan="9" align="center">
	<div id="header">SURAT PERPANJANGAN PENAHANAN</div>
	Nomor: PRINT- 1/0.5.10.3/Ep.1/04/2013
	</td>
</tr>
<tr>
	<td colspan="9" align="center">KEPALA KEJAKSAAN NEGERI SURABAYA</td>
</tr>
<tr>
	<td width="110">Membaca</td>
	<td width="15">:</td>
	<td width="20">1.</td>
	<td colspan="6" align="justify">
	Permintaan perpanjangan penahanan
	</td>
</tr>
<tr>
	<td></td>
	<td></td>
	<td></td>
	<td colspan="2">Nomor</td>
	<td width="15">:</td>
	<td colspan="3"><strong>B/43/II/2013/RESKRIM</strong></td>
</tr>
<tr>
	<td></td>
	<td></td>
	<td></td>
	<td colspan="2">Tanggal</td>
	<td width="15">:</td>
	<td colspan="3"><strong><?php echo konversi_tanggal('d M Y',date("d-m-Y"))?></strong></td>
</tr>
<tr>
	<td></td>
	<td></td>
	<td></td>
	<td colspan="2">Dari</td>
	<td width="15">:</td>
	<td colspan="3"><strong><?php echo strtoupper($dt_spdp['nm_kesatuan']) ?></strong></td>
</tr>
<tr>
	<td></td>
	<td></td>
	<td></td>
	<td colspan="2">Atas Nama Tersangka</td>
	<td width="15">:</td>
	<td colspan="3"><strong><?php echo $dt_tersangka['nm_lengkap'] ?></strong></td>
</tr>
<tr>
	<td></td>
	<td></td>
	<td>2.</td>
	<td colspan="6" align="justify">
	Surat perintah penahanan dari penyidik
	</td>
</tr>
<tr>
	<td></td>
	<td></td>
	<td>3.</td>
	<td colspan="6" align="justify">
	Resume hasil pemeriksaan dari penyidik
	</td>
</tr>
<tr valign="top">
	<td>Menimbang</td>
	<td>:</td>
	<td>a.</td>
	<td colspan="6" align="justify">
		Uraian singkat perkara :
		
	</td>
</tr>
<tr>
	<td colspan="3"></td>
	<td colspan="6">Melanggar pasal KUHP <strong><?php echo $dt_spdp['melanggar_pasal'] ?></strong></td>
</tr>
<tr valign="top">
	<td></td>
	<td></td>
	<td>b.</td>
	<td colspan="6" align="justify">
		Untuk kepentingan pemeriksaan ditingkat penyidikan yang belum selesai, dipandang perlu memperpanjang penahanan tersangka tersebut.
	</td>
</tr>
<tr>
	<td>Mengingat</td>
	<td>:</td>
	<td colspan="7">Pasal 14c, 21, 24 (2) KUHAP</td>
</tr>
<tr>
	<td align="center" colspan="9"><strong>MEMPERPANJANG</strong></td>
</tr>
<tr>
	<td colspan="2" rowspan="10"></td>
	<td colspan="7">Penahanan atas nama tersangka</td>
</tr>
<tr>
	<td colspan="3">Nama Lengkap</td>
	<td width="10">:</td>
	<td colspan="3"><strong><?php echo $dt_tersangka['nm_lengkap'] ?></strong></td></tr>
<tr>
	<td colspan="3">Tempat Lahir</td>
	<td width="10">:</td>
	<td colspan="3"><strong><?php echo strtoupper($dt_tersangka['tmp_lahir']) ?></strong></td>
</tr>
<tr>
	<td colspan="3">Umur / Tanggal Lahir</td>
	<td width="10">:</td>
	<td colspan="3"><strong><?php echo $dt_tersangka['umur'] ?> Tahun / <?php echo konversi_tanggal("d M Y",$dt_tersangka['tgl_lahir']) ?></strong></td>
</tr>
<tr>
	<td colspan="3">Jenis Kelamin</td>
	<td width="10">:</td>
	<td colspan="3"><strong><?php kelamin($dt_tersangka['jns_kelamin']) ?></strong></td>
</tr>
<tr>
	<td colspan="3">Kebangsaan / Kewarganegaraan</td>
	<td width="10">:</td>
	<td colspan="3"><strong><?php echo $dt_tersangka['warganegara'] ?></strong></td>
</tr>
<tr>
	<td colspan="3">Tempat Tinggal</td>
	<td width="10">:</td>
	<td colspan="3"><strong><?php echo $dt_tersangka['tmp_tinggal'] ?></strong></td></tr>
<tr>
	<td colspan="3">Agama</td>
	<td width="10">:</td>
	<td colspan="3"><strong><?php echo strtoupper($dt_tersangka['agama']) ?></strong></td>
</tr>
<tr>
	<td colspan="3">Pekerjaan</td>
	<td width="10">:</td>
	<td colspan="3"><strong><?php echo strtoupper($dt_tersangka['pekerjaan']) ?></strong></td>
</tr>
<tr>
	<td colspan="3">Pendidikan</td>
	<td width="10">:</td>
	<td colspan="3"><strong><?php echo strtoupper($dt_tersangka['pendidikan']) ?></strong></td>
</tr>
<tr>
	<td colspan="2"></td>
	<td colspan="7" align="justify">
	Untuk paling lama <strong>20 hari</strong>, terhitung mulai tanggal <strong>10 April 2013</strong> sampai tanggal <strong>1 Mei 2013</strong> di <strong>RUTAN</strong>
	</td>
</tr>
<tr>
	<td colspan="6"></td>
	<td colspan="3">
	<table align="center" width="320" cellpadding="0" cellspacing="0">
		<tr>
			<td width="150">Dikeluarkan di</td>
			<td width="20">:</td>
			<td><strong>Surabaya</strong></td>
		</tr>
		<tr>
			<td id="underline">Pada Tanggal</td>
			<td id="underline">:</td>
			<td id="underline"><strong><?php echo konversi_tanggal('d M Y',date("d-m-Y"))?></strong></td>
		</tr>
	</table>
	<center><strong>A.n. KEPALA KEJAKSAAN NEGERI SURABAYA<br/>
    Plh. KASI TINDAK PIDANA UMUM<br/>
	Selaku Penuntut Umum
	<br/><br/><br/><br/><br/>
	<span id="underline">MOCHAMAD JUDHY ISMONO.SH.MH</span></br/>
	JAKSA MUDA NIP. 19701007 199803 1 003</strong></center>
	</td>
</tr>
<tr>
	<td id="underline" colspan="5">
		<strong><span id="underline">TEMBUSAN YTH:</span><br/>
		1 KAJARI SURABAYA (Sebagai laporan)<br/>
		2 PENYIDIK<br/>
		3 TERSANGKA<br/>
		4 KELUARGA TERSANGKA<br/>
		5 RUTAN<br/>
		6 ARSIP</strong>
	</td>
	<td colspan="4"></td>
</tr>
</table>
